package com.xiaobao.campusLostFoundAfter.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/*评论实体类*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    //评论ID
    private Integer id;
    //评论人ID
    private String  userId;
    //评论物品的ID
    private Integer itemId;
    //评论的失物还是寻物品
    private String type;
    //评论的内容
    private String content;
    //评论的时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date CreateTime;
}
